import Vue from 'vue'
import App from './App.vue'
import router from './router'//vue路由
import store from './store'//vuex
import '@/styles/index.less'//全局样式.less
import '@/styles/index.css'//引入自定义全局样式
import '@/styles/icon.css'//引入icon图标代码
import Vant from 'vant';//引入vant.js
import 'vant/lib/index.css';//引入vant.css
import 'amfe-flexible'//rem适配包
import Element from 'element-ui';//element-ui包
import '@/utils/dayJs'

Vue.use(Element, { size: 'small', zIndex: 3000 });
Vue.use(Vant);//注册vant
Vue.config.productionTip = false

Vue.filter('filterAutherName',(name)=>{
  if (name==='黑马程序员(改不了)') {
    return '林子技术栈'
  }else{
    return name
  }
})

Vue.filter('filterZero',(num)=>{
  if (num===0) {
    return ''
  }else{
    return num
  }
})


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
